{php include wl_template('common/header');}
<style>
    .user{
        height: 60px;
        min-width: 180px;
    }
    .user .img{
        width: 60px;
        height: 60px;
        float: left;
        position: relative;
    }
    .user .img img{
        width: 60px;
        height: 60px;
        border-radius: 50%;
        border: 1px solid #CCC;
    }
    .user .info{
        float: left;
        height: 60px;
        width: calc(100% - 60px);
        padding-left: 10px;
        padding-top: 10px;
        font-size: 15px;
        text-align: left;
        line-height: 20px;
    }
    .dynamicContent{
        max-height: 80px;
        overflow: auto;
        text-align: left;
    }
</style>
<ul class="nav nav-tabs" id="myTab">
    <li class="active"><a href="javascript:;">开卡记录</a></li>
</ul>
<div class="app-content">
    <!--顶部操作-->
    <div class="app-filter">
    	<div class="filter-action">
            <a href="{php echo web_url('dating/vip/vipSee')}" class="btn btn-primary" data-toggle="ajaxModal">添加会员</a>
        </div>
        <div class="filter-list">
            <form action="" method="get" class="form-horizontal" role="form" id="form1">
                <input type="hidden" name="c" value="site" />
                <input type="hidden" name="a" value="entry" />
                <input type="hidden" name="m" value="{MODULE_NAME}" />
                <input type="hidden" name="p" value="dating" />
                <input type="hidden" name="ac" value="vip" />
                <input type="hidden" name="do" value="userList" />
                <div class="form-group">
                    <div class="col-sm-2 control-label">用户昵称</div>
                    <div class="col-sm-9">
                        <input type="text" class="form-control" name="nickname" value="{$nickname}" placeholder="请输入用户昵称...">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">时间筛选</label>
                    <div class="col-md-3">
                        <select name="time_type" class="form-control">
                            <option value="">请选择时间类型</option>
                            <option value="1" {if $timeType==1}selected="selected"{/if}>开卡时间</option>
                            <option value="2" {if $timeType==2}selected="selected"{/if}>最近续费时间</option>
                        </select>
                    </div>
                    <div class="col-md-2">
                        {php echo tpl_select_time_info('time_limit', array('starttime' => date('Y-m-d H:i',$timeStart), 'endtime' => date('Y-m-d H:i', $timeEnd)));}
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label"></div>
                    <div class="col-sm-9">
                        <button class="btn btn-primary" type="submit">搜索</button>
                        <a href="{php echo web_url('dating/vip/userList')}" class="btn btn-danger">清除</a>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <!--表格信息-->
    <div class="app-table-list">
        <!--列表信息-->
        <div class="table-responsive order-list">
            <table class="table table-hover">
                <thead>
                    <tr>
                        <th class="text-left">用户信息</th>
                        <th class="text-center">类型</th>
                        <th class="text-center">到期时间/剩余次数</th>
                        <th class="text-center">开卡时间</th>
                        <th class="text-center">最近续费时间</th>
                        <th class="text-center">操作</th>
                    </tr>
                </thead>
                <tbody>
                {loop $list $key $item}
                <tr class="text-center">
                    <td>
                        <div class="user">
                            <div class="img">
                                <img src="{$item['avatar']}">
                            </div>
                            <div class="info">
                                <div>{$item['nickname']}</div>
                            </div>
                        </div>
                    </td>
                    <td>
                        {if $item['type'] == 1}
                            <label class="label label-success">时限卡</label>
                        {else}
                            <label class="label label-info">次数卡</label>
                        {/if}
                    </td>
                    <td>
                        {if $item['type'] == 1}
                            <label class="label label-success">到期时间：{$item['end_time']}</label>
                        {else}
                            <label class="label label-info">剩余次数：{$item['surplus_number']}</label>
                        {/if}
                    </td>
                    <td>{$item['create_time']}</td>
                    <td>{$item['update_time']}</td>
                    <td>
                    	<a href="{php echo web_url('dating/vip/vipSee',['id' => $item['id']])}" class="btn btn-primary" data-toggle="ajaxModal">编辑</a>
                        <a href="{php echo web_url('dating/vip/userDel',['ids'=>$item['id']])}" class="btn btn-danger btn-sm" data-toggle="ajaxRemove" data-confirm="确定删除当前会员？该操作不可逆！">删除</a>
                    </td>
                </tr>
                {/loop}
                </tbody>
            </table>
        </div>
        <!--操作按钮 分页信息-->
        <div class="app-table-foot clearfix">
            <div class="pull-right">{$pager}</div>
        </div>
    </div>
</div>
{php include wl_template('common/footer');}